""" 欢迎关注 "码农架构" 微信公众号，热爱开源，拥抱开源。一个IT民工的技术之路经验分享。
    - 问题咨询 / 建议
    1.关注微信公众号 "码农架构" 后私信
    2.可发送邮件: li.shangzhi@aliyun.com
"""
# !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2019/12/27 23:30
# @Author  : iByte

def write_to_file(filename, txt):
    with open(filename, 'w') as file_object:
        s = file_object.write(txt)


if __name__ == '__main__':
    write_to_file('test.txt', 'I am beven')

